package edu.sctu.zhengsenwen.month201506.day20150614.textthreadutil;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by user15 on 2015/6/14.
 */
public class RemindTask extends TimerTask {


    public void run() {
        System.out.println("已经过去了5秒");


        new Timer().cancel();

        //停止时间器
        System.out.println("时间器停止");

    }

}
